import {get, post, put, del} from '@/utils/request'

export function add(data) {
    return post('/home/order/add', data)
}

export function login(username, password) {
    return get('/sys/login-by-password?userName=' + username + '&password=' + password
    )
}

export function update(data) {
    return put('/home/order/update', data)
}

export function updateStatus(data) {
    return put('/home/order/update-status', data)
}

export function deleteUser(id) {
    return del(`/user/delete/${id}`)
}
